<?php
class Contact_model extends CI_Model {
 
    /**
    * Responsable for auto load the database
    * @return void
    */
    public function __construct()
    {
        $this->load->database();
    }

    /**
    * Store the new item into the database
    * @param array $data - associative array with data to store
    * @return boolean 
    */
    function store_contact($data)
    {
		$insert = $this->db->insert('contact', $data);
	    return $insert;
	}
	
	public function get_contact()
    {
		$this->db->select('*');
		$this->db->from('fitur');
		$this->db->where('name', 'Contact');
		$query = $this->db->get();
		return $query->result_array(); 
    } 
 
}
?>	
